package org.jeecg.modules.business.rlzy.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.business.homepage.vo.PageTotalVo;
import org.jeecg.modules.business.rlzy.vo.DictVo;
import org.jeecg.modules.business.rlzy.vo.QyNumVo;
import org.jeecg.modules.business.rlzy.entity.BuGsfwptRlzy;
import org.jeecg.modules.business.rlzy.mapper.BuGsfwptRlzyMapper;
import org.jeecg.modules.business.rlzy.service.IBuGsfwptRlzyService;
import org.jeecg.modules.business.rlzy.vo.TotalParamVo;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 人力资源完税
 * @Author: jeecg-boot
 * @Date:   2023-04-03
 * @Version: V1.0
 */
@Service
public class BuGsfwptRlzyServiceImpl extends ServiceImpl<BuGsfwptRlzyMapper, BuGsfwptRlzy> implements IBuGsfwptRlzyService {
    /**
     * 自定义分页列表查询
     * @param page
     * @param buGsfwptRlzy
     * @return
     */
    @Override
    public IPage<BuGsfwptRlzy> queryRlzyPageListByCustom(Page<BuGsfwptRlzy> page, BuGsfwptRlzy buGsfwptRlzy) {
        return page.setRecords(this.baseMapper.queryRlzyPageListByCustom(page , buGsfwptRlzy));
    }
    @Override
    public List<BuGsfwptRlzy> queryRlzyListByCustom(BuGsfwptRlzy buGsfwptRlzy) {
        return this.baseMapper.queryRlzyPageListByCustom(null, buGsfwptRlzy);
    }

    /**
     * 获取代理名称，根据代征主体过滤
     * @param dzzt
     * @return
     */
    @Override
    public List<DictVo> queryDictByDzzt(String dzzt) {
        return this.baseMapper.queryDictByDzzt(dzzt);
    }

    /**
     * 获取企业名称，根据代理名称过滤
     * @param dlmc
     * @return
     */
    @Override
    public List<DictVo> queryDictByDlmc(String dlmc ,String dzzt) {
        return this.baseMapper.queryDictByDlmc(dlmc ,dzzt);
    }

    /**
     * 查询企业数量，根据企业数量创建sheet
     * @param buGsfwptRlzy
     * @return
     */
    @Override
    public List<QyNumVo> queryQyList(BuGsfwptRlzy buGsfwptRlzy) {
        return this.baseMapper.queryQyList(buGsfwptRlzy);
    }

    /**
     * 统计当前页数据总和
     * @param tv
     * @return
     */
    @Override
    public QyNumVo queryRlzyTotalData(TotalParamVo tv) {
        return this.baseMapper.queryRlzyTotalData(tv);
    }

    /**
     * 查询统计系统数据总体情况
     * @return
     */
    @Override
    public PageTotalVo totalTypeNum() {
        return this.baseMapper.totalTypeNum();
    }

    /**
     * 根据企业统计数据
     * @return
     */
    @Override
    public List<PageTotalVo> totalDataByQy(String wslx) {
        return this.baseMapper.totalDataByQy(wslx);
    }

    /**
     * 根据主体统计数据
     * @return
     */
    @Override
    public List<PageTotalVo> totalDataByZt(String wslx) {
        return this.baseMapper.totalDataByZt(wslx);
    }


}
